﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BabyFood.Entities;
using BabyFood.Data;

public partial class Controls_ControlQuiDoiMod : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            HienThiQuiDoi();
        }
    }

    private void HienThiQuiDoi()
    {
        int TotalRows = 0;
        TList<QuiDoi> TList_QuiDoi = DataRepository.QuiDoiProvider.GetPaged("TrangThai=1", "Id DESC", 0, 6, out TotalRows);

        dlQuiDoiunat.DataSource = TList_QuiDoi;
        dlQuiDoiunat.DataBind();
    }

    //public string GetLienKet(object LienKet)
    //{
        //if (Session["KhachHangVip"] != null)
        //{
        //    return Server.HtmlDecode(LienKet.ToString());
        //}
        //return "../DangNhap.aspx";
    //}
}